﻿using interstellar.Factorys;
using interstellar.IArm;
using System;

namespace interstellar
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");

            Console.WriteLine("-----------------------------------");
            WarScene(new TvTArmyFactory());
            Console.WriteLine();
            WarScene(new TvZArmyFactory());

        }

        public static void WarScene(IArmyFactory armyFactory)
        {
            armyFactory.CreateAirUnit().Assist();
            armyFactory.CreateAttackUnit().Attack();
            armyFactory.CreateMedicalUnit().Cure();
        }
    }
}
